package com.his.modules.business.utils;

import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONObject;
import cn.hutool.json.XML;
import com.his.core.utils.*;
import com.his.modules.business.entity.MedicalRecordAnalysis;
import com.his.modules.business.entity.MedicalRecordAnalysisRecord;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;

@Slf4j
public class MedicalRecordAnalysisUtilNew {
    static JSONObject jsPrt = null;
    static MedicalRecordAnalysisRecord paragraph = null;
    static String xParagraphContent = "";
    static boolean ysqm = false;
    static String XTEXTBODY = "XTextBody";
    static String XTEXTTABLECELL = "XTextTableCell";
    static String XSTRING = "XString";
    static String XINPUTFIELD = "XInputField";
    static String YSQM = "YSQM";
    static List<String> xParagraphArr = new ArrayList<>();
    static List<String> maohao = new ArrayList<>();
    static List<String> hulue = new ArrayList<>();
    static List<String> xinzeng = new ArrayList<>();

    static {
        maohao.add(":");
        maohao.add("：");
    }

    public synchronized static void init() {
        jsPrt = null;
        xParagraphContent = "";
        ysqm = false;
        xParagraphArr.clear();
        hulue.clear();
        xinzeng.clear();
    }
    /**
     * 新病历xml串解析
     * @param xml
     */
    public synchronized static List<MedicalRecordAnalysisRecord> medicalRecordAnalysis(String xml, MedicalRecordAnalysis medicalRecordAnalysis, List<MedicalRecordAnalysisRecord> paraList) {
        //初始化
        init();

        List<MedicalRecordAnalysisRecord> medicalRecordAnalysisRecordList = new ArrayList<>();
        if(StringUtils.isNotBlank(xml)) {
            JSONObject jsonObject = XML.toJSONObject(xml);
            if(null != jsonObject) {
                JSONObject xTextDocument = jsonObject.getJSONObject("XTextDocument");
                JSONObject xElements = xTextDocument.getJSONObject("XElements");
                JSONArray xElementList = xElements.getJSONArray("Element");
                String bodyText = xTextDocument.getStr("BodyText");
                JSONObject contentStyles = xTextDocument.getJSONObject("ContentStyles");
                //处理字体
                dealStyles(contentStyles);
                //解析正文
                if(StringUtils.isNotBlank(bodyText)) {
                    medicalRecordAnalysis.setWbnr(bodyText.getBytes());
                }
                if(xElementList.size() > 0) {
                    for(int i = 0; i < xElementList.size(); i ++) {
                        JSONObject elementDoc = xElementList.getJSONObject(i);
                        String xsiType = elementDoc.getStr("xsi:type");
                        if(XTEXTBODY.equals(xsiType)) {
                            Object obj = elementDoc.get("XElements");
                            if(Objects.isNull(obj) || "".equals(obj.toString())) {
                                return null;
                            }
                            JSONObject xChildElements = (JSONObject)obj;
                            JSONArray xChildElementList = new JSONArray();
                            try {
                                xChildElementList = xChildElements.getJSONArray("Element");
                            } catch (Exception e) {
                                JSONObject element = xChildElements.getJSONObject("Element");
                                xChildElementList.add(element);
                            }

                            //竟然有为null的情况
                            if(Objects.isNull(xChildElementList)) {
                                return null;
                            }

                            getAllElements(xChildElementList, medicalRecordAnalysisRecordList, paraList, XTEXTBODY);

                            for(MedicalRecordAnalysisRecord ys : medicalRecordAnalysisRecordList) {
                                log.info(ys.getDlmc() + "\t" + ys.getYsmc() + "===========" + ys.getYsqz());
                            }
                            return medicalRecordAnalysisRecordList;
                        }
                        continue;
                    }
                }
            }
        }
        return null;
    }

    public synchronized static void getAllElements(JSONArray xElementList, List<MedicalRecordAnalysisRecord> medicalRecordAnalysisRecordList, List<MedicalRecordAnalysisRecord> paraList, String pXsiType) {
        String zhendlmc = "";
        for(int i = 0; i < xElementList.size(); i ++) {
            JSONObject element = xElementList.getJSONObject(i);
            String xsiType = element.getStr("xsi:type");
            String styleIndex = element.getStr("StyleIndex", "");

            if(hulue.contains(styleIndex)) {
                continue;
            }

            if(XSTRING.equals(xsiType)) {
                String dlmc = StringUtils.trim(element.getStr("Text", "")).replace(" ", "").replace(":", "").replace("：", "");
                if(xParagraphArr.contains(styleIndex) && containsManyChineseWords(dlmc) && XTEXTBODY.equals(pXsiType)) {
                    if(null != paragraph) {
                        paragraph.setDlqz(xParagraphContent);
                        MedicalRecordAnalysisRecord p = new MedicalRecordAnalysisRecord();
                        BeanUtils.copyProperties(paragraph, p);
                        paraList.add(p);
                        paragraph = null;
                    }
                    zhendlmc += dlmc;
                    if(Objects.isNull(jsPrt)) {
                        jsPrt = new JSONObject();
                        jsPrt.set("dlid", element.getStr("InnerID"));
                        xParagraphContent = "";
                    }
                } else {
                    //如果为空就跳出去
                    if(StringUtils.isBlank(dlmc)) {
                        continue;
                    }
                    if (!Objects.isNull(jsPrt) && containsManyChineseWords(zhendlmc)) {
                        if (Objects.isNull(paragraph)) {
                            paragraph = new MedicalRecordAnalysisRecord();
                            //如果父元素（段落元素）不为空，就set下值
                            paragraph.setDlid(jsPrt.getStr("dlid"));
                            paragraph.setDlmc(zhendlmc);
                        }
                    }

                    if(maohao.contains(StringUtils.trim(element.getStr("Text", "")).replace(" ", ""))) {
                        continue;
                    }
                    //否则可能就是段落内容了
                    if(!maohao.contains(element.getStr("Text", "").trim())) {
                        if(!XINPUTFIELD.equals(pXsiType)) {
                            xParagraphContent += element.getStr("Text", "");
                        }

                    }
                    jsPrt = null;
                    zhendlmc = "";
                }
            } else {
                if (!Objects.isNull(jsPrt) && containsManyChineseWords(zhendlmc)) {
                    if (Objects.isNull(paragraph)) {
                        paragraph = new MedicalRecordAnalysisRecord();
                        //如果父元素（段落元素）不为空，就set下值
                        paragraph.setDlid(jsPrt.getStr("dlid"));
                        paragraph.setDlmc(zhendlmc);
                    }

                    jsPrt = null;
                }
                zhendlmc = "";

                if(XINPUTFIELD.equals(xsiType)) {
                    String id = element.getStr("ID", "");
                    String value = element.getStr("InnerValue", "");
                    if(YSQM.equals(id)) {
                        continue;
                    }
                    if(StringUtils.isBlank(value)) {
                        continue;
                    }
                    if(XTEXTBODY.equals(pXsiType) || XTEXTTABLECELL.equals(pXsiType)) {
                        xParagraphContent += value;
                    }

                    MedicalRecordAnalysisRecord medicalRecordAnalysisRecord = new MedicalRecordAnalysisRecord();
                    medicalRecordAnalysisRecord.setYsid(id);
                    medicalRecordAnalysisRecord.setYsmc(element.getStr("Name", element.getStr("BackgroundText", "未知元素")));
                    medicalRecordAnalysisRecord.setYsqz(value);
                    //如果父元素（段落元素）不为空，就set下值
                    if(Objects.isNull(paragraph)) {
                        paragraph = new MedicalRecordAnalysisRecord();
                        //如果木有段落，给制造个段落
                        paragraph.setDlid("1");
                        paragraph.setDlmc("体征信息");

                        jsPrt = null;
                    }
                    medicalRecordAnalysisRecord.setDlid(paragraph.getDlid());
                    medicalRecordAnalysisRecord.setDlmc(paragraph.getDlmc());

                    medicalRecordAnalysisRecordList.add(medicalRecordAnalysisRecord);
                }

                Object obj = element.get("XElements");
                if(!Objects.isNull(obj) && !"".equals(obj)) {
                    JSONObject xChildElements = (JSONObject)obj;
                    JSONArray xChildElementList = new JSONArray();
                    try {
                        xChildElementList = xChildElements.getJSONArray("Element");
                    } catch (Exception e) {
                        JSONObject ele = xChildElements.getJSONObject("Element");
                        xChildElementList.add(ele);
                    }

                    //竟然有为null的情况
                    if(!Objects.isNull(xChildElementList)) {
                        getAllElements(xChildElementList, medicalRecordAnalysisRecordList, paraList, xsiType);
                    }
                }
            }



            //第一层节点加上最后一个段落
            if(XTEXTBODY.equals(pXsiType)) {
                if(i == xElementList.size() - 1) {
                    if (!Objects.isNull(paragraph)) {
                        paragraph.setDlqz(xParagraphContent);
                        MedicalRecordAnalysisRecord p = new MedicalRecordAnalysisRecord();
                        BeanUtils.copyProperties(paragraph, p);
                        paraList.add(p);
                        paragraph = null;
                        xParagraphContent = "";
                    }
                }
            }
        }
    }

    /**
     * 暂定多于1个中文即为段落
     * @param dlmc
     * @return
     */
    public static boolean containsManyChineseWords(String dlmc) {
        ArrayList<Character> list = new ArrayList();
        if(StringUtils.isBlank(dlmc)) {
            return false;
        }
        for(int i = 0; i < dlmc.length(); i ++) {
            char c = dlmc.charAt(i);
            if(c >= '\u4E00' && c <= '\u9FA5') {
                list.add(c);
            }
        }
        return list.size() > 0 && list.size() < 10;
    }

    public static void dealStyles(JSONObject contentStyles) {
        if(null != contentStyles) {
            JSONObject styles = contentStyles.getJSONObject("Styles");
            JSONArray stylesArr = new JSONArray();
            try {
                stylesArr = styles.getJSONArray("Style");
            } catch (Exception e) {
                stylesArr.add(styles.getJSONObject("Style"));
            }

            if(stylesArr.size() > 0) {
                for (int i = 0; i < stylesArr.size(); i++) {
                    JSONObject style = stylesArr.getJSONObject(i);
                    String index = style.getStr("Index");
                    Boolean bold = style.getBool("Bold", false);
                    Integer deleterIndex = style.getInt("DeleterIndex", -1);
                    Integer creatorIndex = style.getInt("CreatorIndex", -1);
                    if(deleterIndex >= 0) {
                        hulue.add(index);
                    } else {
                        if(bold) {
                            xParagraphArr.add(index);
                            if(creatorIndex >= 0) {
                                xinzeng.add(index);
                            }
                        }
                    }
                }
            }
        }

    }

    public static void main(String[] args) {

        String aa = "<XTextDocument xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" EditorVersionString=\"DCWriter20240827115806\">\n" +
                "<InnerID>772</InnerID>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XTextHeader\">\n" +
                "<InnerID>14</InnerID>\n" +
                "<AcceptTab>true</AcceptTab>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\" StyleIndex=\"5\">\n" +
                "<InnerID>2011</InnerID>\n" +
                "<Text>山东第二医科大学附属医院门诊病历</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XParagraphFlag\" StyleIndex=\"0\">\n" +
                "<InnerID>30</InnerID>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XTextTable\" NumOfRows=\"3\" NumOfColumns=\"2\">\n" +
                "<InnerID>31</InnerID>\n" +
                "<ID>table2</ID>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XTextTableRow\">\n" +
                "<InnerID>34</InnerID>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XTextTableCell\" StyleIndex=\"1\">\n" +
                "<InnerID>35</InnerID>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2012</InnerID>\n" +
                "<Text>门诊号:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年11月28日</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>613</InnerID>\n" +
                "<ID>133400831356970762</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding>\n" +
                "<DataSource>MS_BRDA</DataSource>\n" +
                "<BindingPath>MZHM</BindingPath>\n" +
                "</ValueBinding>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2015</InnerID>\n" +
                "<Text>2501022006</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<BorderElementColor />\n" +
                "<Name>门诊号</Name>\n" +
                "<InnerValue>2501022006</InnerValue>\n" +
                "<BackgroundText>门诊号</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2013</InnerID>\n" +
                "<Text> 姓名:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年11月28日</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>599</InnerID>\n" +
                "<ID>133416542379605168</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding>\n" +
                "<DataSource>MS_BRDA</DataSource>\n" +
                "<BindingPath>BRXM</BindingPath>\n" +
                "</ValueBinding>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2016</InnerID>\n" +
                "<Text>徐嘉慧</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<BorderElementColor />\n" +
                "<Name>姓名</Name>\n" +
                "<InnerValue>徐嘉慧</InnerValue>\n" +
                "<BackgroundText>姓名</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2014</InnerID>\n" +
                "<Text> 性别:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年11月28日</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>566</InnerID>\n" +
                "<ID>133416544203354678</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding>\n" +
                "<DataSource>MS_BRDA</DataSource>\n" +
                "<BindingPath>BRXB</BindingPath>\n" +
                "</ValueBinding>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2017</InnerID>\n" +
                "<Text>女</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<BorderElementColor />\n" +
                "<Name>门诊病人性别</Name>\n" +
                "<InnerValue>女</InnerValue>\n" +
                "<BackgroundText>性别</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XParagraphFlag\">\n" +
                "<InnerID>36</InnerID>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XTextTableCell\" StyleIndex=\"1\">\n" +
                "<InnerID>37</InnerID>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2018</InnerID>\n" +
                "<Text>年龄:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年11月28日</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>559</InnerID>\n" +
                "<ID>133400838665680025</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding>\n" +
                "<DataSource>MS_BRDA</DataSource>\n" +
                "<BindingPath>NL</BindingPath>\n" +
                "</ValueBinding>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2021</InnerID>\n" +
                "<Text>22岁</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<BorderElementColor />\n" +
                "<Name>年龄</Name>\n" +
                "<InnerValue>22岁</InnerValue>\n" +
                "<BackgroundText>年龄</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2019</InnerID>\n" +
                "<Text> 民族:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年11月28日</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>559</InnerID>\n" +
                "<ID>133456373142525629</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding>\n" +
                "<DataSource>MS_BRDA</DataSource>\n" +
                "<BindingPath>MZDM</BindingPath>\n" +
                "</ValueBinding>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2022</InnerID>\n" +
                "<Text>汉族</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<BorderElementColor />\n" +
                "<Name>门诊民族</Name>\n" +
                "<InnerValue>汉族</InnerValue>\n" +
                "<BackgroundText>民族</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2020</InnerID>\n" +
                "<Text> 婚姻:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年11月28日</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>607</InnerID>\n" +
                "<ID>133456378260909695</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding>\n" +
                "<DataSource>MS_BRDA</DataSource>\n" +
                "<BindingPath>HYZK</BindingPath>\n" +
                "</ValueBinding>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2023</InnerID>\n" +
                "<Text>其他</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<BorderElementColor />\n" +
                "<Name>门诊婚姻</Name>\n" +
                "<InnerValue>其他</InnerValue>\n" +
                "<BackgroundText>婚姻</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XParagraphFlag\">\n" +
                "<InnerID>38</InnerID>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XTextTableRow\">\n" +
                "<InnerID>39</InnerID>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XTextTableCell\" StyleIndex=\"1\">\n" +
                "<InnerID>40</InnerID>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2024</InnerID>\n" +
                "<Text>职业:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年11月28日</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>605</InnerID>\n" +
                "<ID>133456428835323620</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding>\n" +
                "<DataSource>MS_BRDA</DataSource>\n" +
                "<BindingPath>ZYDM</BindingPath>\n" +
                "</ValueBinding>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2026</InnerID>\n" +
                "<Text>其他</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<BorderElementColor />\n" +
                "<Name>门诊职业</Name>\n" +
                "<InnerValue>其他</InnerValue>\n" +
                "<BackgroundText>职业</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2025</InnerID>\n" +
                "<Text> 联系电话:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年11月28日</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>592</InnerID>\n" +
                "<ID>133419096457893380</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding>\n" +
                "<DataSource>MS_BRDA</DataSource>\n" +
                "<BindingPath>JTDH</BindingPath>\n" +
                "</ValueBinding>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2027</InnerID>\n" +
                "<Text>18764691376</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<BorderElementColor />\n" +
                "<Name>联系电话</Name>\n" +
                "<InnerValue>18764691376</InnerValue>\n" +
                "<BackgroundText>联系电话</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XParagraphFlag\">\n" +
                "<InnerID>41</InnerID>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XTextTableCell\" StyleIndex=\"1\">\n" +
                "<InnerID>42</InnerID>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2028</InnerID>\n" +
                "<Text>住址:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年11月28日</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>580</InnerID>\n" +
                "<ID>133419097698364331</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding>\n" +
                "<DataSource>MS_BRDA</DataSource>\n" +
                "<BindingPath>XZZ_QTDZ</BindingPath>\n" +
                "</ValueBinding>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2029</InnerID>\n" +
                "<Text>望留颐年园</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<BorderElementColor />\n" +
                "<Name>住址</Name>\n" +
                "<InnerValue>望留颐年园</InnerValue>\n" +
                "<BackgroundText>住址</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XParagraphFlag\">\n" +
                "<InnerID>43</InnerID>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XTextTableRow\">\n" +
                "<InnerID>44</InnerID>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XTextTableCell\" StyleIndex=\"1\">\n" +
                "<InnerID>45</InnerID>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2030</InnerID>\n" +
                "<Text>就诊时间:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年11月28日</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>585</InnerID>\n" +
                "<ID>133417264980726586</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding>\n" +
                "<DataSource>YS_MZ_JZLS</DataSource>\n" +
                "<BindingPath>KSSJ</BindingPath>\n" +
                "</ValueBinding>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2031</InnerID>\n" +
                "<Text>2025-01-02 07:38</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<BorderElementColor />\n" +
                "<Name>就诊时间</Name>\n" +
                "<DisplayFormat>\n" +
                "<Style>DateTime</Style>\n" +
                "<Format>yyyy-MM-dd HH:mm</Format>\n" +
                "</DisplayFormat>\n" +
                "<InnerValue>2025-01-02 07:38:23</InnerValue>\n" +
                "<BackgroundText>就诊时间</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XParagraphFlag\">\n" +
                "<InnerID>46</InnerID>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XTextTableCell\" StyleIndex=\"1\">\n" +
                "<InnerID>47</InnerID>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2032</InnerID>\n" +
                "<Text>就诊科室:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年11月28日</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>605</InnerID>\n" +
                "<ID>133456400704884651</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding>\n" +
                "<DataSource>YS_MZ_JZLS</DataSource>\n" +
                "<BindingPath>KSDM</BindingPath>\n" +
                "</ValueBinding>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2033</InnerID>\n" +
                "<Text>浮烟山急诊科门诊</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<BorderElementColor />\n" +
                "<Name>门诊科室名称</Name>\n" +
                "<InnerValue>浮烟山急诊科门诊</InnerValue>\n" +
                "<BackgroundText>科室名称</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XParagraphFlag\">\n" +
                "<InnerID>48</InnerID>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<Columns>\n" +
                "<Element xsi:type=\"XTextTableColumn\">\n" +
                "<InnerID>32</InnerID>\n" +
                "<Width>1092.5</Width>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XTextTableColumn\">\n" +
                "<InnerID>33</InnerID>\n" +
                "<Width>1094.5</Width>\n" +
                "</Element>\n" +
                "</Columns>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XParagraphFlag\" StyleIndex=\"3\">\n" +
                "<InnerID>20</InnerID>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XTextBody\">\n" +
                "<InnerID>15</InnerID>\n" +
                "<AcceptTab>true</AcceptTab>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2034</InnerID>\n" +
                "<Text>T:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月17日 星期二</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>1082</InnerID>\n" +
                "<ID>体温</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                "<InnerID>2070</InnerID>\n" +
                "<Text>36.3</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>体温</Name>\n" +
                "<InnerValue>36.3</InnerValue>\n" +
                "<BackgroundText>体温</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2035</InnerID>\n" +
                "<Text>℃,P:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月17日 星期二</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>1092</InnerID>\n" +
                "<ID>脉搏</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                "<InnerID>2071</InnerID>\n" +
                "<Text>93</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>脉搏</Name>\n" +
                "<InnerValue>93</InnerValue>\n" +
                "<BackgroundText>脉搏</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2036</InnerID>\n" +
                "<Text>次/分，R:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月17日 星期二</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>1103</InnerID>\n" +
                "<ID>呼吸</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                "<InnerID>2072</InnerID>\n" +
                "<Text>19</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>呼吸</Name>\n" +
                "<InnerValue>19</InnerValue>\n" +
                "<BackgroundText>呼吸</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2037</InnerID>\n" +
                "<Text>次/分，BP:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月17日 星期二</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>1116</InnerID>\n" +
                "<ID>收缩压</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                "<InnerID>2073</InnerID>\n" +
                "<Text>136</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>收缩压</Name>\n" +
                "<InnerValue>136</InnerValue>\n" +
                "<BackgroundText>收缩压</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2038</InnerID>\n" +
                "<Text>/</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月17日 星期二</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>1123</InnerID>\n" +
                "<ID>舒张压</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                "<InnerID>2074</InnerID>\n" +
                "<Text>98</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>舒张压</Name>\n" +
                "<InnerValue>98</InnerValue>\n" +
                "<BackgroundText>舒张压</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2039</InnerID>\n" +
                "<Text>mmHg</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XParagraphFlag\">\n" +
                "<InnerID>542</InnerID>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\" StyleIndex=\"4\">\n" +
                "<InnerID>2040</InnerID>\n" +
                "<Text>主诉</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2041</InnerID>\n" +
                "<Text>:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月16日 星期一</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>209</InnerID>\n" +
                "<ID>主诉</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                "<InnerID>2075</InnerID>\n" +
                "<Text>全身瘙痒伴憋气4小时</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<Deleteable>false</Deleteable>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>主诉</Name>\n" +
                "<InnerValue>全身瘙痒伴憋气4小时</InnerValue>\n" +
                "<BackgroundText>主诉</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XParagraphFlag\">\n" +
                "<InnerID>621</InnerID>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\" StyleIndex=\"4\">\n" +
                "<InnerID>2042</InnerID>\n" +
                "<Text>现病史</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2043</InnerID>\n" +
                "<Text>:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月16日 星期一</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>219</InnerID>\n" +
                "<ID>现病史</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                "<InnerID>2076</InnerID>\n" +
                "<Text>患者于4小时前出现全身瘙痒伴憋气，来诊</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<Deleteable>false</Deleteable>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>现病史</Name>\n" +
                "<InnerValue>患者于4小时前出现全身瘙痒伴憋气，来诊</InnerValue>\n" +
                "<BackgroundText>现病史</BackgroundText>\n" +
                "<FieldSettings />\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XParagraphFlag\">\n" +
                "<InnerID>230</InnerID>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\" StyleIndex=\"4\">\n" +
                "<InnerID>2044</InnerID>\n" +
                "<Text>既往史</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2045</InnerID>\n" +
                "<Text>:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<InnerID>231</InnerID>\n" +
                "<ID>field15</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月16日 星期一</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>506</InnerID>\n" +
                "<ID>门诊既往健康状况</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2081</InnerID>\n" +
                "<Text>既往</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\" StyleIndex=\"7\">\n" +
                "<InnerID>2082</InnerID>\n" +
                "<Text>体质健康</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                "<InnerID>2083</InnerID>\n" +
                "<Text>有类似病史发作一次</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>门诊既往健康状况</Name>\n" +
                "<InnerValue>既往有类似病史发作一次</InnerValue>\n" +
                "<BackgroundText>门诊既往健康状况</BackgroundText>\n" +
                "<SelectedIndex>4</SelectedIndex>\n" +
                "<FieldSettings>\n" +
                "<EditStyle>DropdownList</EditStyle>\n" +
                "<ListSource>\n" +
                "<Items>\n" +
                "<Item>\n" +
                "<Text>既往体健</Text>\n" +
                "<Value>既往体健</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>平素身体较差</Text>\n" +
                "<Value>平素身体较差</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>平素身体健康</Text>\n" +
                "<Value>平素身体健康</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>平素身体状况良好</Text>\n" +
                "<Value>平素身体状况良好</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>既往体质健康</Text>\n" +
                "<Value>既往体质健康</Value>\n" +
                "</Item>\n" +
                "</Items>\n" +
                "</ListSource>\n" +
                "</FieldSettings>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2077</InnerID>\n" +
                "<Text>；</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月16日 星期一</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>526</InnerID>\n" +
                "<ID>门诊既往传染病</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2084</InnerID>\n" +
                "<Text>否认肝炎、结核等传染病史</Text>\n" +
                "</Element>\n" +
                "</XElements>"
                ;
        String bb = "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>门诊既往传染病</Name>\n" +
                "<InnerValue>否认肝炎、结核等传染病史</InnerValue>\n" +
                "<BackgroundText>门诊既往传染病</BackgroundText>\n" +
                "<SelectedIndex>0</SelectedIndex>\n" +
                "<FieldSettings>\n" +
                "<EditStyle>DropdownList</EditStyle>\n" +
                "<ListSource>\n" +
                "<Items>\n" +
                "<Item>\n" +
                "<Text>否认肝炎、结核等传染病史</Text>\n" +
                "<Value>否认肝炎、结核等传染病史</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>有肝炎、结核等传染病史</Text>\n" +
                "<Value>有肝炎、结核等传染病史</Value>\n" +
                "</Item>\n" +
                "</Items>\n" +
                "</ListSource>\n" +
                "</FieldSettings>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2078</InnerID>\n" +
                "<Text>；</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月16日 星期一</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>544</InnerID>\n" +
                "<ID>门诊既往过敏</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2085</InnerID>\n" +
                "<Text>否认食物、药物过敏史</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>门诊既往过敏</Name>\n" +
                "<InnerValue>否认食物、药物过敏史</InnerValue>\n" +
                "<BackgroundText>门诊既往过敏</BackgroundText>\n" +
                "<SelectedIndex>0</SelectedIndex>\n" +
                "<FieldSettings>\n" +
                "<EditStyle>DropdownList</EditStyle>\n" +
                "<ListSource>\n" +
                "<Items>\n" +
                "<Item>\n" +
                "<Text>否认食物、药物过敏史</Text>\n" +
                "<Value>否认食物、药物过敏史</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>有过敏史、过敏源不详</Text>\n" +
                "<Value>有过敏史、过敏源不详</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>有 过敏，表现为 。</Text>\n" +
                "<Value>有 过敏，表现为 。</Value>\n" +
                "</Item>\n" +
                "</Items>\n" +
                "</ListSource>\n" +
                "</FieldSettings>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2079</InnerID>\n" +
                "<Text>；</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月16日 星期一</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>554</InnerID>\n" +
                "<ID>门诊既往预防接种</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2086</InnerID>\n" +
                "<Text>预防接种史不详</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>门诊既往预防接种</Name>\n" +
                "<InnerValue>预防接种史不详</InnerValue>\n" +
                "<BackgroundText>门诊既往预防接种</BackgroundText>\n" +
                "<SelectedIndex>0</SelectedIndex>\n" +
                "<FieldSettings>\n" +
                "<EditStyle>DropdownList</EditStyle>\n" +
                "<ListSource>\n" +
                "<Items>\n" +
                "<Item>\n" +
                "<Text>预防接种史不详</Text>\n" +
                "<Value>预防接种史不详</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>预防接种史执行计划免疫</Text>\n" +
                "<Value>预防接种史执行计划免疫</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>曾接种</Text>\n" +
                "<Value>曾接种</Value>\n" +
                "</Item>\n" +
                "</Items>\n" +
                "</ListSource>\n" +
                "</FieldSettings>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2080</InnerID>\n" +
                "<Text>。</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<Deleteable>false</Deleteable>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>门诊既往史</Name>\n" +
                "<InnerValue>[既往有类似病史发作一次]；[否认肝炎、结核等传染病史]；[否认食物、药物过敏史]；[预防接种史不详]。</InnerValue>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XParagraphFlag\">\n" +
                "<InnerID>487</InnerID>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\" StyleIndex=\"4\">\n" +
                "<InnerID>2046</InnerID>\n" +
                "<Text>药物过敏史</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2047</InnerID>\n" +
                "<Text>:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月16日 星期一</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>627</InnerID>\n" +
                "<ID>药物过敏史</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2087</InnerID>\n" +
                "<Text>无</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<Deleteable>false</Deleteable>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>药物过敏史</Name>\n" +
                "<InnerValue>无</InnerValue>\n" +
                "<BackgroundText>药物过敏史</BackgroundText>\n" +
                "<SelectedIndex>0</SelectedIndex>\n" +
                "<FieldSettings>\n" +
                "<EditStyle>DropdownList</EditStyle>\n" +
                "<ListSource>\n" +
                "<Items>\n" +
                "<Item>\n" +
                "<Text>无</Text>\n" +
                "<Value>无</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>有</Text>\n" +
                "<Value>有</Value>\n" +
                "</Item>\n" +
                "</Items>\n" +
                "</ListSource>\n" +
                "</FieldSettings>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XParagraphFlag\">\n" +
                "<InnerID>636</InnerID>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\" StyleIndex=\"4\">\n" +
                "<InnerID>2048</InnerID>\n" +
                "<Text>体格检查</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2049</InnerID>\n" +
                "<Text>:</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<InnerID>637</InnerID>\n" +
                "<ID>体格检查</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2088</InnerID>\n" +
                "<Text>精神</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月16日 星期一</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>747</InnerID>\n" +
                "<ID>患者精神状态</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2103</InnerID>\n" +
                "<Text>可</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>患者精神状态</Name>\n" +
                "<InnerValue>可</InnerValue>\n" +
                "<BackgroundText>患者精神状态</BackgroundText>\n" +
                "<SelectedIndex>1</SelectedIndex>\n" +
                "<FieldSettings>\n" +
                "<EditStyle>DropdownList</EditStyle>\n" +
                "<ListSource>\n" +
                "<Items>\n" +
                "<Item>\n" +
                "<Text>不振</Text>\n" +
                "<Value>不振</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>可</Text>\n" +
                "<Value>可</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>烦躁</Text>\n" +
                "<Value>烦躁</Value>\n" +
                "</Item>\n" +
                "</Items>\n" +
                "</ListSource>\n" +
                "</FieldSettings>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2089</InnerID>\n" +
                "<Text>，咽部</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月16日 星期一</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>757</InnerID>\n" +
                "<ID>咽部</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2104</InnerID>\n" +
                "<Text>无充血</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>咽部</Name>\n" +
                "<InnerValue>无充血</InnerValue>\n" +
                "<BackgroundText>咽部</BackgroundText>\n" +
                "<SelectedIndex>1</SelectedIndex>\n" +
                "<FieldSettings>\n" +
                "<EditStyle>DropdownList</EditStyle>\n" +
                "<ListSource>\n" +
                "<Items>\n" +
                "<Item>\n" +
                "<Text>正常</Text>\n" +
                "<Value>正常</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>无充血</Text>\n" +
                "<Value>无充血</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>红肿</Text>\n" +
                "<Value>红肿</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>充血</Text>\n" +
                "<Value>充血</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>分泌物</Text>\n" +
                "<Value>分泌物</Value>\n" +
                "</Item>\n" +
                "</Items>\n" +
                "</ListSource>\n" +
                "</FieldSettings>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2090</InnerID>\n" +
                "<Text>，扁桃体</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月16日 星期一</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>901</InnerID>\n" +
                "<ID>扁桃体新</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2105</InnerID>\n" +
                "<Text>无肿大</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>扁桃体新</Name>\n" +
                "<InnerValue>无肿大</InnerValue>\n" +
                "<BackgroundText>扁桃体新</BackgroundText>\n" +
                "<SelectedIndex>0</SelectedIndex>\n" +
                "<FieldSettings>\n" +
                "<EditStyle>DropdownList</EditStyle>\n" +
                "<ListSource>\n" +
                "<Items>\n" +
                "<Item>\n" +
                "<Text>无肿大</Text>\n" +
                "<Value>无肿大</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>充血</Text>\n" +
                "<Value>充血</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>肿大、充血</Text>\n" +
                "<Value>肿大、充血</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>Ⅰ°肿大</Text>\n" +
                "<Value>Ⅰ°肿大</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>Ⅱ°肿大</Text>\n" +
                "<Value>Ⅱ°肿大</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>Ⅲ°肿大</Text>\n" +
                "<Value>Ⅲ°肿大</Value>\n" +
                "</Item>\n" +
                "</Items>\n" +
                "</ListSource>\n" +
                "</FieldSettings>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2091</InnerID>\n" +
                "<Text>，双肺呼吸音</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月16日 星期一</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>1127</InnerID>\n" +
                "<ID>门诊呼吸音</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2106</InnerID>\n" +
                "<Text>低</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>门诊呼吸音</Name>\n" +
                "<InnerValue>低</InnerValue>\n" +
                "<BackgroundText>门诊呼吸音</BackgroundText>\n" +
                "<SelectedIndex>0</SelectedIndex>\n" +
                "<FieldSettings>\n" +
                "<EditStyle>DropdownList</EditStyle>\n" +
                "<ListSource>\n" +
                "<Items>\n" +
                "<Item>\n" +
                "<Text>低</Text>\n" +
                "<Value>低</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>清晰</Text>\n" +
                "<Value>清晰</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>粗糙</Text>\n" +
                "<Value>粗糙</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>粗</Text>\n" +
                "<Value>粗</Value>\n" +
                "</Item>\n" +
                "</Items>\n" +
                "</ListSource>\n" +
                "</FieldSettings>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2092</InnerID>\n" +
                "<Text>，</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月16日 星期一</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>1194</InnerID>\n" +
                "<ID>啰音</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2107</InnerID>\n" +
                "<Text>无干、湿性啰音</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>啰音</Name>\n" +
                "<InnerValue>无干、湿性啰音</InnerValue>\n" +
                "<BackgroundText>啰音</BackgroundText>\n" +
                "<SelectedIndex>0</SelectedIndex>\n" +
                "<FieldSettings>\n" +
                "<EditStyle>DropdownList</EditStyle>\n" +
                "<ListSource>\n" +
                "<Items>\n" +
                "<Item>\n" +
                "<Text>无干、湿性啰音</Text>\n" +
                "<Value>无干、湿性啰音</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>有干性啰音</Text>\n" +
                "<Value>有干性啰音</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>有湿性啰音</Text>\n" +
                "<Value>有湿性啰音</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>有干、湿性啰音</Text>\n" +
                "<Value>有干、湿性啰音</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>未闻及干、湿性啰音</Text>\n" +
                "<Value>未闻及干、湿性啰音</Value>\n" +
                "</Item>\n" +
                "</Items>\n" +
                "</ListSource>\n" +
                "</FieldSettings>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2093</InnerID>\n" +
                "<Text>。心律</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月16日 星期一</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>1423</InnerID>\n" +
                "<ID>门诊心律</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2108</InnerID>\n" +
                "<Text>齐</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>门诊心律</Name>\n" +
                "<InnerValue>齐</InnerValue>\n" +
                "<BackgroundText>门诊心律</BackgroundText>\n" +
                "<SelectedIndex>0</SelectedIndex>\n" +
                "<FieldSettings>\n" +
                "<EditStyle>DropdownList</EditStyle>\n" +
                "<ListSource>\n" +
                "<Items>\n" +
                "<Item>\n" +
                "<Text>齐</Text>\n" +
                "<Value>齐</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>不齐</Text>\n" +
                "<Value>不齐</Value>\n" +
                "</Item>\n" +
                "</Items>\n" +
                "</ListSource>\n" +
                "</FieldSettings>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2094</InnerID>\n" +
                "<Text>，心音</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月16日 星期一</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>1600</InnerID>\n" +
                "<ID>门诊心音</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2109</InnerID>\n" +
                "<Text>有力</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>门诊心音</Name>\n" +
                "<InnerValue>有力</InnerValue>\n" +
                "<BackgroundText>门诊心音</BackgroundText>\n" +
                "<SelectedIndex>0</SelectedIndex>\n" +
                "<FieldSettings>\n" +
                "<EditStyle>DropdownList</EditStyle>\n" +
                "<ListSource>\n" +
                "<Items>\n" +
                "<Item>\n" +
                "<Text>有力</Text>\n" +
                "<Value>有力</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>无力</Text>\n" +
                "<Value>无力</Value>\n" +
                "</Item>\n" +
                "</Items>\n" +
                "</ListSource>\n" +
                "</FieldSettings>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2095</InnerID>\n" +
                "<Text>，心前区</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月16日 星期一</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>1718</InnerID>\n" +
                "<ID>门诊心前区</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2110</InnerID>\n" +
                "<Text>未闻及明显病理性杂音</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>门诊心前区</Name>\n" +
                "<InnerValue>未闻及明显病理性杂音</InnerValue>\n" +
                "<BackgroundText>门诊心前区</BackgroundText>\n" +
                "<SelectedIndex>0</SelectedIndex>\n" +
                "<FieldSettings>\n" +
                "<EditStyle>DropdownList</EditStyle>\n" +
                "<ListSource>\n" +
                "<Items>\n" +
                "<Item>\n" +
                "<Text>未闻及明显病理性杂音</Text>\n" +
                "<Value>未闻及明显病理性杂音</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>有杂音</Text>\n" +
                "<Value>有杂音</Value>\n" +
                "</Item>\n" +
                "</Items>\n" +
                "</ListSource>\n" +
                "</FieldSettings>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2096</InnerID>\n" +
                "<Text>。腹</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月16日 星期一</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>2148</InnerID>\n" +
                "<ID>门诊腹部</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2111</InnerID>\n" +
                "<Text>软</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>门诊腹部</Name>\n" +
                "<InnerValue>软</InnerValue>\n" +
                "<BackgroundText>门诊腹部</BackgroundText>\n" +
                "<SelectedIndex>3</SelectedIndex>\n" +
                "<FieldSettings>\n" +
                "<EditStyle>DropdownList</EditStyle>\n" +
                "<ListSource>\n" +
                "<Items>\n" +
                "<Item>\n" +
                "<Text>正常</Text>\n" +
                "<Value>正常</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>松弛</Text>\n" +
                "<Value>松弛</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>柔软</Text>\n" +
                "<Value>柔软</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>软</Text>\n" +
                "<Value>软</Value>\n" +
                "</Item>\n" +
                "</Items>\n" +
                "</ListSource>\n" +
                "</FieldSettings>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2097</InnerID>\n" +
                "<Text>，</Text>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XInputField\">\n" +
                "<Attributes>\n" +
                "<Attribute>\n" +
                "<Name>Insert Time</Name>\n" +
                "<Value>2023年10月16日 星期一</Value>\n" +
                "</Attribute>\n" +
                "</Attributes>\n" +
                "<InnerID>2156</InnerID>\n" +
                "<ID>有无</ID>\n" +
                "<EnableValueValidate>true</EnableValueValidate>\n" +
                "<ValueBinding />\n" +
                "<XElements>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2112</InnerID>\n" +
                "<Text>无</Text>\n" +
                "</Element>\n" +
                "</XElements>\n" +
                "<StartBorderText>[</StartBorderText>\n" +
                "<EndBorderText>]</EndBorderText>\n" +
                "<BorderElementColor />\n" +
                "<Name>有无</Name>\n" +
                "<InnerValue>无</InnerValue>\n" +
                "<BackgroundText>有无</BackgroundText>\n" +
                "<SelectedIndex>1</SelectedIndex>\n" +
                "<FieldSettings>\n" +
                "<EditStyle>DropdownList</EditStyle>\n" +
                "<ListSource>\n" +
                "<Items>\n" +
                "<Item>\n" +
                "<Text>有</Text>\n" +
                "<Value>有</Value>\n" +
                "</Item>\n" +
                "<Item>\n" +
                "<Text>无</Text>\n" +
                "<Value>无</Value>\n" +
                "</Item>\n" +
                "</Items>\n" +
                "</ListSource>\n" +
                "</FieldSettings>\n" +
                "</Element>\n" +
                "<Element xsi:type=\"XString\">\n" +
                "<InnerID>2098</InnerID>\n" +
                "<Text>压痛，</Text>\n" +
                "</Element>" ;
        String cc =
                "<Element xsi:type=\"XInputField\">\n" +
                        "<Attributes>\n" +
                        "<Attribute>\n" +
                        "<Name>Insert Time</Name>\n" +
                        "<Value>2023年10月16日 星期一</Value>\n" +
                        "</Attribute>\n" +
                        "</Attributes>\n" +
                        "<InnerID>2162</InnerID>\n" +
                        "<ID>有无</ID>\n" +
                        "<EnableValueValidate>true</EnableValueValidate>\n" +
                        "<ValueBinding />\n" +
                        "<XElements>\n" +
                        "<Element xsi:type=\"XString\">\n" +
                        "<InnerID>2113</InnerID>\n" +
                        "<Text>无</Text>\n" +
                        "</Element>\n" +
                        "</XElements>\n" +
                        "<StartBorderText>[</StartBorderText>\n" +
                        "<EndBorderText>]</EndBorderText>\n" +
                        "<BorderElementColor />\n" +
                        "<Name>有无</Name>\n" +
                        "<InnerValue>无</InnerValue>\n" +
                        "<BackgroundText>有无</BackgroundText>\n" +
                        "<SelectedIndex>1</SelectedIndex>\n" +
                        "<FieldSettings>\n" +
                        "<EditStyle>DropdownList</EditStyle>\n" +
                        "<ListSource>\n" +
                        "<Items>\n" +
                        "<Item>\n" +
                        "<Text>有</Text>\n" +
                        "<Value>有</Value>\n" +
                        "</Item>\n" +
                        "<Item>\n" +
                        "<Text>无</Text>\n" +
                        "<Value>无</Value>\n" +
                        "</Item>\n" +
                        "</Items>\n" +
                        "</ListSource>\n" +
                        "</FieldSettings>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\">\n" +
                        "<InnerID>2099</InnerID>\n" +
                        "<Text>反跳痛，</Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XInputField\">\n" +
                        "<Attributes>\n" +
                        "<Attribute>\n" +
                        "<Name>Insert Time</Name>\n" +
                        "<Value>2023年10月16日 星期一</Value>\n" +
                        "</Attribute>\n" +
                        "</Attributes>\n" +
                        "<InnerID>2168</InnerID>\n" +
                        "<ID>有无</ID>\n" +
                        "<EnableValueValidate>true</EnableValueValidate>\n" +
                        "<ValueBinding />\n" +
                        "<XElements>\n" +
                        "<Element xsi:type=\"XString\">\n" +
                        "<InnerID>2114</InnerID>\n" +
                        "<Text>无</Text>\n" +
                        "</Element>\n" +
                        "</XElements>\n" +
                        "<StartBorderText>[</StartBorderText>\n" +
                        "<EndBorderText>]</EndBorderText>\n" +
                        "<BorderElementColor />\n" +
                        "<Name>有无</Name>\n" +
                        "<InnerValue>无</InnerValue>\n" +
                        "<BackgroundText>有无</BackgroundText>\n" +
                        "<SelectedIndex>1</SelectedIndex>\n" +
                        "<FieldSettings>\n" +
                        "<EditStyle>DropdownList</EditStyle>\n" +
                        "<ListSource>\n" +
                        "<Items>\n" +
                        "<Item>\n" +
                        "<Text>有</Text>\n" +
                        "<Value>有</Value>\n" +
                        "</Item>\n" +
                        "<Item>\n" +
                        "<Text>无</Text>\n" +
                        "<Value>无</Value>\n" +
                        "</Item>\n" +
                        "</Items>\n" +
                        "</ListSource>\n" +
                        "</FieldSettings>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\">\n" +
                        "<InnerID>2100</InnerID>\n" +
                        "<Text>包块，肝脾</Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XInputField\">\n" +
                        "<Attributes>\n" +
                        "<Attribute>\n" +
                        "<Name>Insert Time</Name>\n" +
                        "<Value>2023年10月16日 星期一</Value>\n" +
                        "</Attribute>\n" +
                        "</Attributes>\n" +
                        "<InnerID>2219</InnerID>\n" +
                        "<ID>门诊肝脾</ID>\n" +
                        "<EnableValueValidate>true</EnableValueValidate>\n" +
                        "<ValueBinding />\n" +
                        "<XElements>\n" +
                        "<Element xsi:type=\"XString\">\n" +
                        "<InnerID>2115</InnerID>\n" +
                        "<Text>未触及明显肿大</Text>\n" +
                        "</Element>\n" +
                        "</XElements>\n" +
                        "<StartBorderText>[</StartBorderText>\n" +
                        "<EndBorderText>]</EndBorderText>\n" +
                        "<BorderElementColor />\n" +
                        "<Name>门诊肝脾</Name>\n" +
                        "<InnerValue>未触及明显肿大</InnerValue>\n" +
                        "<BackgroundText>门诊肝脾</BackgroundText>\n" +
                        "<SelectedIndex>0</SelectedIndex>\n" +
                        "<FieldSettings>\n" +
                        "<EditStyle>DropdownList</EditStyle>\n" +
                        "<ListSource>\n" +
                        "<Items>\n" +
                        "<Item>\n" +
                        "<Text>未触及明显肿大</Text>\n" +
                        "<Value>未触及明显肿大</Value>\n" +
                        "</Item>\n" +
                        "<Item>\n" +
                        "<Text>触及明显肿大</Text>\n" +
                        "<Value>触及明显肿大</Value>\n" +
                        "</Item>\n" +
                        "</Items>\n" +
                        "</ListSource>\n" +
                        "</FieldSettings>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\">\n" +
                        "<InnerID>2101</InnerID>\n" +
                        "<Text>，肠鸣音</Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XInputField\">\n" +
                        "<Attributes>\n" +
                        "<Attribute>\n" +
                        "<Name>Insert Time</Name>\n" +
                        "<Value>2023年10月16日 星期一</Value>\n" +
                        "</Attribute>\n" +
                        "</Attributes>\n" +
                        "<InnerID>2333</InnerID>\n" +
                        "<ID>门诊肠鸣音</ID>\n" +
                        "<EnableValueValidate>true</EnableValueValidate>\n" +
                        "<ValueBinding />\n" +
                        "<XElements>\n" +
                        "<Element xsi:type=\"XString\">\n" +
                        "<InnerID>2116</InnerID>\n" +
                        "<Text>正常</Text>\n" +
                        "</Element>\n" +
                        "</XElements>\n" +
                        "<StartBorderText>[</StartBorderText>\n" +
                        "<EndBorderText>]</EndBorderText>\n" +
                        "<BorderElementColor />\n" +
                        "<Name>门诊肠鸣音</Name>\n" +
                        "<InnerValue>正常</InnerValue>\n" +
                        "<BackgroundText>门诊肠鸣音</BackgroundText>\n" +
                        "<SelectedIndex>0</SelectedIndex>\n" +
                        "<FieldSettings>\n" +
                        "<EditStyle>DropdownList</EditStyle>\n" +
                        "<ListSource>\n" +
                        "<Items>\n" +
                        "<Item>\n" +
                        "<Text>正常</Text>\n" +
                        "<Value>正常</Value>\n" +
                        "</Item>\n" +
                        "<Item>\n" +
                        "<Text>无亢进</Text>\n" +
                        "<Value>无亢进</Value>\n" +
                        "</Item>\n" +
                        "<Item>\n" +
                        "<Text>消失</Text>\n" +
                        "<Value>消失</Value>\n" +
                        "</Item>\n" +
                        "<Item>\n" +
                        "<Text>活跃， 次/分</Text>\n" +
                        "<Value>活跃， 次/分</Value>\n" +
                        "</Item>\n" +
                        "<Item>\n" +
                        "<Text>金属音， 次/分</Text>\n" +
                        "<Value>金属音， 次/分</Value>\n" +
                        "</Item>\n" +
                        "<Item>\n" +
                        "<Text>增多， 次/分</Text>\n" +
                        "<Value>增多， 次/分</Value>\n" +
                        "</Item>\n" +
                        "<Item>\n" +
                        "<Text>正常， 次/分</Text>\n" +
                        "<Value>正常， 次/分</Value>\n" +
                        "</Item>\n" +
                        "</Items>\n" +
                        "</ListSource>\n" +
                        "</FieldSettings>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\">\n" +
                        "<InnerID>2102</InnerID>\n" +
                        "<Text>。</Text>\n" +
                        "</Element>\n" +
                        "</XElements>\n" +
                        "<Deleteable>false</Deleteable>\n" +
                        "<StartBorderText>[</StartBorderText>\n" +
                        "<EndBorderText>]</EndBorderText>\n" +
                        "<BorderElementColor />\n" +
                        "<Name>体格检查</Name>\n" +
                        "<InnerValue>精神[可]，咽部[无充血]，扁桃体[无肿大]，双肺呼吸音[低]，[无干、湿性啰音]。心律[齐]，心音[有力]，心前区[未闻及明显病理性杂音]。腹[软]，[无]压痛，[无]反跳痛，[无]包块，肝脾[未触及明显肿大]，肠鸣音[正常]。</InnerValue>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                        "<InnerID>2050</InnerID>\n" +
                        "<Text>面部及全身大片皮肤发红。</Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XParagraphFlag\">\n" +
                        "<InnerID>2343</InnerID>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\" StyleIndex=\"4\">\n" +
                        "<InnerID>2051</InnerID>\n" +
                        "<Text>辅助检查结果</Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\">\n" +
                        "<InnerID>2052</InnerID>\n" +
                        "<Text>:</Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XInputField\">\n" +
                        "<Attributes>\n" +
                        "<Attribute>\n" +
                        "<Name>Insert Time</Name>\n" +
                        "<Value>2023年10月16日 星期一</Value>\n" +
                        "</Attribute>\n" +
                        "</Attributes>\n" +
                        "<InnerID>2344</InnerID>\n" +
                        "<ID>辅助检查结果</ID>\n" +
                        "<EnableValueValidate>true</EnableValueValidate>\n" +
                        "<ValueBinding />\n" +
                        "<Deleteable>false</Deleteable>\n" +
                        "<StartBorderText>[</StartBorderText>\n" +
                        "<EndBorderText>]</EndBorderText>\n" +
                        "<BorderElementColor />\n" +
                        "<Name>辅助检查结果</Name>\n" +
                        "<BackgroundText>辅助检查结果</BackgroundText>\n" +
                        "<FieldSettings />\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XParagraphFlag\">\n" +
                        "<InnerID>2359</InnerID>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\" StyleIndex=\"4\">\n" +
                        "<InnerID>2053</InnerID>\n" +
                        "<Text>诊断</Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\">\n" +
                        "<InnerID>2054</InnerID>\n" +
                        "<Text>:</Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XInputField\">\n" +
                        "<Attributes>\n" +
                        "<Attribute>\n" +
                        "<Name>Insert Time</Name>\n" +
                        "<Value>2023年10月16日 星期一</Value>\n" +
                        "</Attribute>\n" +
                        "</Attributes>\n" +
                        "<InnerID>2409</InnerID>\n" +
                        "<ID>诊断</ID>\n" +
                        "<EnableValueValidate>true</EnableValueValidate>\n" +
                        "<ValueBinding />\n" +
                        "<ContentReadonly>True</ContentReadonly>\n" +
                        "<XElements>\n" +
                        "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                        "<InnerID>2117</InnerID>\n" +
                        "<Text>过敏反应</Text>\n" +
                        "</Element>\n" +
                        "</XElements>\n" +
                        "<Deleteable>false</Deleteable>\n" +
                        "<StartBorderText>[</StartBorderText>\n" +
                        "<EndBorderText>]</EndBorderText>\n" +
                        "<BorderElementColor />\n" +
                        "<UserEditable>false</UserEditable>\n" +
                        "<Name>诊断</Name>\n" +
                        "<InnerValue>过敏反应</InnerValue>\n" +
                        "<BackgroundText>双击录入诊断</BackgroundText>\n" +
                        "<FieldSettings />\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XParagraphFlag\">\n" +
                        "<InnerID>2416</InnerID>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\" StyleIndex=\"4\">\n" +
                        "<InnerID>2055</InnerID>\n" +
                        "<Text>诊疗意见</Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\">\n" +
                        "<InnerID>2056</InnerID>\n" +
                        "<Text>:</Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XInputField\">\n" +
                        "<Attributes>\n" +
                        "<Attribute>\n" +
                        "<Name>Insert Time</Name>\n" +
                        "<Value>2023年10月16日 星期一</Value>\n" +
                        "</Attribute>\n" +
                        "</Attributes>\n" +
                        "<InnerID>2417</InnerID>\n" +
                        "<ID>诊疗意见</ID>\n" +
                        "<EnableValueValidate>true</EnableValueValidate>\n" +
                        "<ValueBinding />\n" +
                        "<XElements>\n" +
                        "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                        "<InnerID>2118</InnerID>\n" +
                        "<Text>异丙嗪注射液(基）(25mg 1ml) 1支/25mg st 肌肉注射</Text>\n" +
                        "</Element>\n" +
                        "</XElements>\n" +
                        "<Deleteable>false</Deleteable>\n" +
                        "<StartBorderText>[</StartBorderText>\n" +
                        "<EndBorderText>]</EndBorderText>\n" +
                        "<BorderElementColor />\n" +
                        "<Name>诊疗意见</Name>\n" +
                        "<InnerValue>异丙嗪注射液(基）(25mg 1ml) 1支/25mg st 肌肉注射</InnerValue>\n" +
                        "<BackgroundText>诊疗意见</BackgroundText>\n" +
                        "<FieldSettings />\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XParagraphFlag\">\n" +
                        "<InnerID>837</InnerID>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\" WhitespaceCount=\"8\">\n" +
                        "<InnerID>2057</InnerID>\n" +
                        "<Text>  </Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                        "<InnerID>2058</InnerID>\n" +
                        "<Text>0.9%氯化钠注射液（可立袋）(基）(250ml2.25g) 1袋/250ml st 静滴</Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XParagraphFlag\" StyleIndex=\"6\">\n" +
                        "<InnerID>940</InnerID>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                        "<InnerID>2059</InnerID>\n" +
                        "<Text>维生素C注射液[集采][基](2ml:0.5g) 4支/2g st 静滴</Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\" WhitespaceCount=\"2\">\n" +
                        "<InnerID>2060</InnerID>\n" +
                        "<Text>  </Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XParagraphFlag\" StyleIndex=\"6\">\n" +
                        "<InnerID>977</InnerID>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\" WhitespaceCount=\"8\">\n" +
                        "<InnerID>2061</InnerID>\n" +
                        "<Text>  </Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                        "<InnerID>2062</InnerID>\n" +
                        "<Text>5%葡萄糖注射液（可立袋）(基）(250ml12.5g) 1袋/250ml st 静滴</Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XParagraphFlag\" StyleIndex=\"6\">\n" +
                        "<InnerID>1032</InnerID>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                        "<InnerID>2063</InnerID>\n" +
                        "<Text>葡萄糖酸钙注射液[集采](基）(10ml：1g) 2支/2g st 静滴</Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\" WhitespaceCount=\"35\">\n" +
                        "<InnerID>2064</InnerID>\n" +
                        "<Text>  </Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                        "<InnerID>2065</InnerID>\n" +
                        "<Text>  0.9%氯化钠注射液（可立袋）(基）(250ml2.25g) 1袋/250ml st 静滴</Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XParagraphFlag\" StyleIndex=\"6\">\n" +
                        "<InnerID>1149</InnerID>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                        "<InnerID>2066</InnerID>\n" +
                        "<Text>甲泼尼龙琥珀酸钠粉针[集采][基](40mg) 1支/40mg st 静滴</Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XParagraphFlag\" StyleIndex=\"6\">\n" +
                        "<InnerID>1187</InnerID>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\" StyleIndex=\"6\" WhitespaceCount=\"10\">\n" +
                        "<InnerID>2067</InnerID>\n" +
                        "<Text> </Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\" StyleIndex=\"8\">\n" +
                        "<InnerID>2068</InnerID>\n" +
                        "<Text>患者拒绝输液，并签字</Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XString\" StyleIndex=\"6\" WhitespaceCount=\"27\">\n" +
                        "<InnerID>2069</InnerID>\n" +
                        "<Text></Text>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XInputField\">\n" +
                        "<Attributes>\n" +
                        "<Attribute>\n" +
                        "<Name>Insert Time</Name>\n" +
                        "<Value>2023年10月12日 星期四</Value>\n" +
                        "</Attribute>\n" +
                        "</Attributes>\n" +
                        "<InnerID>891</InnerID>\n" +
                        "<ID>YSQM</ID>\n" +
                        "<EnableValueValidate>true</EnableValueValidate>\n" +
                        "<ValueBinding />\n" +
                        "<XElements>\n" +
                        "<Element xsi:type=\"XString\" StyleIndex=\"6\">\n" +
                        "<InnerID>2119</InnerID>\n" +
                        "<Text>任增武</Text>\n" +
                        "</Element>\n" +
                        "</XElements>\n" +
                        "<Deleteable>false</Deleteable>\n" +
                        "<BorderElementColor />\n" +
                        "<LabelText>医生签名:</LabelText>\n" +
                        "<Name>医生签名</Name>\n" +
                        "<InnerValue>任增武</InnerValue>\n" +
                        "<BackgroundText>医生签名</BackgroundText>\n" +
                        "<FieldSettings />\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XParagraphFlag\">\n" +
                        "<InnerID>19</InnerID>\n" +
                        "</Element>\n" +
                        "</XElements>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XTextFooter\">\n" +
                        "<InnerID>16</InnerID>\n" +
                        "<AcceptTab>true</AcceptTab>\n" +
                        "<XElements>\n" +
                        "<Element xsi:type=\"XPageInfo\" StyleIndex=\"2\">\n" +
                        "<InnerID>2586</InnerID>\n" +
                        "<Width>100</Width>\n" +
                        "<AutoHeight>true</AutoHeight>\n" +
                        "<Height>62.73437</Height>\n" +
                        "</Element>\n" +
                        "<Element xsi:type=\"XParagraphFlag\" StyleIndex=\"0\">\n" +
                        "<InnerID>21</InnerID>\n" +
                        "</Element>\n" +
                        "</XElements>\n" +
                        "</Element>\n" +
                        "</XElements>\n" +
                        "<Parameters>\n" +
                        "<Parameter Name=\"MS_BRDA\" />\n" +
                        "<Parameter Name=\"YS_MZ_JZLS\" />\n" +
                        "</Parameters>\n" +
                        "<FileFormat>XML</FileFormat>\n" +
                        "<UserHistories>\n" +
                        "<History>\n" +
                        "<ID>2134</ID>\n" +
                        "<Name>任增武</Name>\n" +
                        "<SavedTime>2025-01-02T07:51:35.6668309+08:00</SavedTime>\n" +
                        "<PermissionLevel>2</PermissionLevel>\n" +
                        "</History>\n" +
                        "<History>\n" +
                        "<ID>2134</ID>\n" +
                        "<Name>任增武</Name>\n" +
                        "<SavedTime>2025-01-02T07:52:00.3396961+08:00</SavedTime>\n" +
                        "<PermissionLevel>2</PermissionLevel>\n" +
                        "</History>\n" +
                        "<History>\n" +
                        "<ID>2134</ID>\n" +
                        "<Name>任增武</Name>\n" +
                        "<SavedTime>2025-01-02T07:52:04.0661861+08:00</SavedTime>\n" +
                        "<PermissionLevel>2</PermissionLevel>\n" +
                        "</History>\n" +
                        "</UserHistories>\n" +
                        "<ContentStyles>\n" +
                        "<Default xsi:type=\"DocumentContentStyle\">\n" +
                        "<FontName>宋体</FontName>\n" +
                        "<FontSize>12</FontSize>\n" +
                        "</Default>\n" +
                        "<Styles>\n" +
                        "<Style Index=\"0\">\n" +
                        "<FontName>宋体</FontName>\n" +
                        "<FontSize>12</FontSize>\n" +
                        "<Align>Center</Align>\n" +
                        "</Style>\n" +
                        "<Style Index=\"1\">\n" +
                        "<FontName>宋体</FontName>\n" +
                        "<FontSize>12</FontSize>\n" +
                        "<BorderWidth>1</BorderWidth>\n" +
                        "<BorderLeft>true</BorderLeft>\n" +
                        "<BorderBottom>true</BorderBottom>\n" +
                        "<BorderTop>true</BorderTop>\n" +
                        "<BorderRight>true</BorderRight>\n" +
                        "<PaddingLeft>15</PaddingLeft>\n" +
                        "<PaddingTop>10</PaddingTop>\n" +
                        "<PaddingRight>15</PaddingRight>\n" +
                        "<PaddingBottom>10</PaddingBottom>\n" +
                        "</Style>\n" +
                        "<Style Index=\"2\">\n" +
                        "<BackgroundColor>#00000000</BackgroundColor>\n" +
                        "<FontName>宋体</FontName>\n" +
                        "<FontSize>12</FontSize>\n" +
                        "</Style>\n" +
                        "<Style Index=\"3\">\n" +
                        "<FontName>宋体</FontName>\n" +
                        "<FontSize>18</FontSize>\n" +
                        "<Align>Center</Align>\n" +
                        "</Style>\n" +
                        "<Style Index=\"4\">\n" +
                        "<FontName>宋体</FontName>\n" +
                        "<FontSize>12</FontSize>\n" +
                        "<Bold>true</Bold>\n" +
                        "</Style>\n" +
                        "<Style Index=\"5\">\n" +
                        "<FontName>宋体</FontName>\n" +
                        "<FontSize>15</FontSize>\n" +
                        "<Bold>true</Bold>\n" +
                        "<Align>Center</Align>\n" +
                        "</Style>\n" +
                        "<Style Index=\"6\">\n" +
                        "<FontName>宋体</FontName>\n" +
                        "<FontSize>12</FontSize>\n" +
                        "<CreatorIndex>0</CreatorIndex>\n" +
                        "</Style>\n" +
                        "<Style Index=\"7\">\n" +
                        "<FontName>宋体</FontName>\n" +
                        "<FontSize>12</FontSize>\n" +
                        "<DeleterIndex>0</DeleterIndex>\n" +
                        "</Style>\n" +
                        "<Style Index=\"8\">\n" +
                        "<FontName>宋体</FontName>\n" +
                        "<FontSize>12</FontSize>\n" +
                        "<CreatorIndex>1</CreatorIndex>\n" +
                        "</Style>\n" +
                        "</Styles>\n" +
                        "</ContentStyles>\n" +
                        "<Info>\n" +
                        "<LicenseText>北京海林思科技有限公司:山东第二医科大学附属医院</LicenseText>\n" +
                        "<CreationTime>1980-01-01T00:00:00</CreationTime>\n" +
                        "<LastModifiedTime>2025-01-02T07:52:04.0651857+08:00</LastModifiedTime>\n" +
                        "<LastPrintTime>1980-01-01T00:00:00</LastPrintTime>\n" +
                        "<Operator>DCSoft.Writer Version:1.2022.12.22</Operator>\n" +
                        "<NumOfPage>2</NumOfPage>\n" +
                        "</Info>\n" +
                        "<BodyText>T:[36.3]℃,P:[93]次/分，R:[19]次/分，BP:[136]/[98]mmHg\n" +
                        "主诉:[全身瘙痒伴憋气4小时]\n" +
                        "现病史:[患者于4小时前出现全身瘙痒伴憋气，来诊]\n" +
                        "既往史:[[既往有类似病史发作一次]；[否认肝炎、结核等传染病史]；[否认食物、药物过敏史]；[预防接种史不详]。]\n" +
                        "药物过敏史:[无]\n" +
                        "体格检查:[精神[可]，咽部[无充血]，扁桃体[无肿大]，双肺呼吸音[低]，[无干、湿性啰音]。心律[齐]，心音[有力]，心前区[未闻及明显病理性杂音]。腹[软]，[无]压痛，[无]反跳痛，[无]包块，肝脾[未触及明显肿大]，肠鸣音[正常]。]面部及全身大片皮肤发红。\n" +
                        "辅助检查结果:[辅助检查结果]\n" +
                        "诊断:[过敏反应]\n" +
                        "诊疗意见:[异丙嗪注射液(基）(25mg 1ml) 1支/25mg st 肌肉注射]\n" +
                        "  0.9%氯化钠注射液（可立袋）(基）(250ml2.25g) 1袋/250ml st 静滴\n" +
                        "维生素C注射液[集采][基](2ml:0.5g) 4支/2g st 静滴  \n" +
                        "  5%葡萄糖注射液（可立袋）(基）(250ml12.5g) 1袋/250ml st 静滴\n" +
                        "葡萄糖酸钙注射液[集采](基）(10ml：1g) 2支/2g st 静滴 0.9%氯化钠注射液（可立袋）(基）(250ml2.25g) 1袋/250ml st 静滴\n" +
                        "甲泼尼龙琥珀酸钠粉针[集采][基](40mg) 1支/40mg st 静滴\n" +
                        " 患者拒绝输液，并签字医生签名:任增武</BodyText>\n" +
                        "<LocalConfig />\n" +
                        "<PageSettings>\n" +
                        "<PaperKind>A5</PaperKind>\n" +
                        "<PaperWidth>583</PaperWidth>\n" +
                        "<PaperHeight>827</PaperHeight>\n" +
                        "<LeftMargin>59</LeftMargin>\n" +
                        "<TopMargin>165</TopMargin>\n" +
                        "<RightMargin>39</RightMargin>\n" +
                        "<BottomMargin>98</BottomMargin>\n" +
                        "<Landscape>true</Landscape>\n" +
                        "</PageSettings>\n" +
                        "</XTextDocument>" ;
        String dd =


                "" ;
        String ee =

                "";

        List<MedicalRecordAnalysisRecord> ysList = new ArrayList<>();
        List<MedicalRecordAnalysisRecord> dlList = new ArrayList<>();
        MedicalRecordAnalysis medicalRecordAnalysis = new MedicalRecordAnalysis();
String ff = aa + bb + cc + dd + ee;
        ysList = medicalRecordAnalysis(ff, medicalRecordAnalysis, dlList);
//        System.out.println(dlList);
//        for(MedicalRecordAnalysisRecord dl : dlList) {
//            System.out.println(dl.getDlmc() + "===========" + dl.getDlqz());
        for(MedicalRecordAnalysisRecord ys : dlList) {
            System.out.println(ys.getDlmc());

        }
            for(MedicalRecordAnalysisRecord ys : ysList) {
//                if(dl.getDlmc().equals(ys.getDlmc())) {
//                    System.out.println("\t" + ys.getYsmc() + "===========" + ys.getYsqz());
//                }
                System.out.println(ys.getDlmc() + "\t" + ys.getYsmc() + "===========" + ys.getYsqz());
            }
//        }

//        System.out.println(ysList);
//        System.out.println("");

    }


}